from functools import wraps
def JudgeInput(func):
    @wraps(func)
    def wrapper(input_income):
        if (not isinstance(input_income,int) or not isinstance(input_income,float)):
                if input_income>200:
                    raise "输入不合法"
        return  func(input_income)
    return wrapper
@JudgeInput
def MakeProfit(income):
    profit = 0
    if income<=10:
        profit = income*(1+0.1)
    elif 10<income<=20:
        profit = (10)*1.1+(income-10)*1.075
    elif 20<income<=40:
        profit = (10)* 1.1+10*1.075 + (income-20)*1.05
    elif 40<income<=60:
        profit = (10) * 1.1 + 10 * 1.075+20*1.05 + (income - 40) * 1.03
    elif 60<income<=100:
        profit = (10) * 1.1 + 10 * 1.075+20*1.05+20*1.03 + (income - 60) * 1.015
    else:
        profit = (10) * 1.1 + 10 * 1.075 + 20 * 1.05 + 20 * 1.03+ 40*1.005+ (income - 100) * 1.015
    print(profit)
if __name__ == '__main__':
        income = eval(input("\033[1;36;m income:\033[0m"))
        MakeProfit(income)



